/*
 * config.h
 *
 *  Created on: 27 Oca 2012
 *      Author: root
 */

#ifndef AND_CONFIG_H_
#define AND_CONFIG_H_

#include "common.h"
#include  "sealed.h"

#include <sys/types.h>
#include <android/configuration.h>

namespace androidplus {
class and_config: private virtual sealed {
public:
	friend class activity;
	void print_config();

	const char * get_language() const;
	const char * get_country() const;
	const int32_t get_mcc() const;
	const int32_t get_mnc() const;
	const int32_t get_orientation() const;
	const int32_t get_touch_sreen() const;
	const int32_t get_density() const;
	const int32_t get_keyboard() const;
	const int32_t get_navigation() const;
	const int32_t get_keys_hidden() const;
	const int32_t get_nav_hidden() const;
	const int32_t get_sdk_version() const;
	const int32_t get_screen_size() const;
	const int32_t get_screen_long() const;
	const int32_t get_ui_mode_type() const;
	const int32_t get_ui_mode_night() const;

private:
	and_config(AConfiguration *conf = NULL);
	virtual ~and_config();

private:
	AConfiguration *aconf;
	char lang[3], country[3];

};

}
#endif /* AND_CONFIG_H_ */
